cmake_minimum_required(VERSION 2.8.12)
project(Server)
add_executable(Server Main.cpp Recv.cpp login.pb.cc CheckTemplate.cpp) # 生成可执行文件

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/../libco-master
)
target_link_libraries(Server ${CMAKE_CURRENT_SOURCE_DIR}/../libco-master/lib/libcolib.a)
target_link_libraries(Server pthread)
target_link_libraries(Server dl)
target_link_libraries(Server protobuf)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lpthread -ldl")
# set(CMAKE_CXX_FLAGS "-g -fno-strict-aliasing -O2 -Wall -export-dynamic -Wall -pipe  -D_GNU_SOURCE -D_REENTRANT -fPIC -Wno-deprecated -m64")